const express = require("express");
const history = require('connect-history-api-fallback')

const app = express();

app.use(history())

app.use(express.static(__dirname + "/static"));

app.get("/person", (req, res) => {
  res.send({
    name: "Aggie",
    age: 24,
  });
});

app.listen(8091, (err) => {
  if (err) console.log(err.message);
  console.log("8091端口的服务器启动了");
});
